<?php
/**
 * Created by IDEA.
 * User: dinesh
 * Date: Jul 3, 2013
 * Time: 3:47:36 PM
 * To change this template use File | Settings | File Templates.
 */
 ?>
<link rel="stylesheet" type="text/css" href="css/dhtmlx/grid/skins/dhtmlxgrid_dhx_skyblue.css">
<link rel="STYLESHEET" type="text/css" href="css/dhtmlx/grid/dhtmlxgrid_pgn_bricks.css">
<link rel="STYLESHEET" type="text/css" href="css/dhtmlx/grid/dhtmlxgrid.css">
<link rel="STYLESHEET" type="text/css" href="css/dhtmlx/toolbar/skins/dhtmlxtoolbar_dhx_skyblue.css">

<script src="js/dhtmlx/grid/dhtmlxgrid.js"></script>
<script src="js/dhtmlx/grid/dhtmlxgridcell.js"></script>
<script src="js/dhtmlx/grid/ext/dhtmlxgrid_filter.js"></script>
<script src="js/dhtmlx/grid/ext/dhtmlxgrid_srnd.js"></script>
<script src="js/dhtmlx/grid/dhtmlxgrid_pgn.js"></script>
<script src="js/dhtmlx/toolbar/dhtmlxtoolbar.js"></script>

 <div style="margin-top:10px">
<table>
   <tr>
			<td><!-- Data Controls Div -->

                          <fieldset>
                              <legend>Add New TLD Holder</legend>
                          <?php
                          if($this->success){
                          ?>
                                  <input type="hidden" id="lotId" name="lotId" value="<?php echo $this->lotID ?> " />
                               <form method="post" id="frmData" action="">
                              <input type="hidden" id="id" name="id"/>
                              <input type="hidden" id="version" name="version" />

                              <div>
                               <table>
                                  <tr>
                                      <td width="200px"><label for="cardId">Holder ID :</label></td>
                                      <td><input style="width:300px" id="cardId" name="cardId" type="text" /> <span id="cardIdInfo"> </span></td>
                                  </tr>


                               </table>
                              </div>

                          </form>

					<table border="0" cellspacing="5px" cellpadding="0px" width="100%" style="margin-top:0px;">
						<tr>
							<td>
								<button id="btnClose" onclick="closePage();" privilege="" class="clsButtonSmall">Close</button>

								<button id="btnClear" onclick="initialize();" privilege="" class="clsButtonSmall">Clear</button>
							</td>
							<td width="*" align="right">
								<button id="btnSave" onclick="save();" class="clsButtonSmall">Add</button>
							</td>
						</tr>
					</table>

                          <?php
                          }else{
                              echo "<div class='error'>Please select the Lot before add Holder</div>";
                          }
                          ?>
                          

				 </fieldset>
			</td>
		</tr>
	</table> 


 </div>
 <div>
     <div>
            <fieldset>
                <legend>Search TLD Holder</legend>
                <!-- Search Div -->
                <form id="frmSearch" action="#" onsubmit="return false;">

                    <table border="0" cellspacing="5px" cellpadding="0px" width="100%">
                        <tr>
                            <td width="80px">Code:</td>
                            <td width="80px"><input type="text" style="width:150px" id="searchCriteria.code"
                                                    name="searchCriteria.code"
                                                    keyfilter="alphanumeric" onKeyDown="doSearch(event)"/></td>

                            <td width="60px" align="right">Lot Name :</td>
                            <td width="80px"><?php echo $this->lotList ?> </td>
                            <td width="200px" align="left">
                                <button onClick="reloadGrid()" class="clsButtonSmall" id="submitButton">Search</button>
                                <input type="checkbox" id="autosearch" onClick="enableAutosubmit(this.checked)"> Enable
                                Autosearch
                            </td>
                        </tr>
                    </table>

                    <input type="hidden" id="totalRecords" name="page.totalRecords"/>
                    <input type="hidden" id="startPosition" name="page.startPosition"/>
                    <input type="hidden" id="pageSize" name="page.pageSize"/>

                </form>
            </fieldset>
        </div>
     <fieldset>
                              <legend>TLD Holder List</legend>
         <td>
        <div>
            <div id="gridbox" style="width:750px;height:230px;margin-top:10px;"></div>
            <div><span id="pagingArea"></span>&nbsp;<span id="infoArea"></span><span id="recfound"></span></div>
        </div>
    </td>

     </fieldset>
 </div>





<script src="js/tld/addHolder.js"></script>
<div id='messagePanel'> </div>
 
